﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Services;
using YaAppoint.Response;

namespace YaAppoint.Appointments.TimeIntervals
{
    /// <summary>
    /// 预约时段服务
    /// </summary>
    [RemoteService(isEnabled: false)]
    public interface ITimeIntervalAppService:IApplicationService
    {
        Task<BackJson> GetListAsync(Guid sid, string? filterName, int page, int pageSize);

        Task<BackJson> SubmitCreate(CreateTimeIntervalDto dto, Guid sid);

        Task<BackJson> SubmitEidt(TimeIntervalDto dto);

        Task<BackJson> GetAsync(Guid id);

        Task<BackJson> DisableToggle(Guid id);

        Task<BackJson> Delete(Guid id);

        Task<BackJson> DeleteMany(List<Guid> idList);

        Task<BackJson> BatchCreateAsync(BatchCreateDto barchModel, Guid sid);
    }
}
